package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.MachineMapper;
import com.rongke.model.Machine;
import com.rongke.service.MachineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @MachineServiceImpl
 * @机器ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class MachineServiceImpl extends ServiceImpl<MachineMapper, Machine> implements MachineService {

    @Autowired
    private MachineMapper machineMapper;

    /**
     * @根据条件查找机器
     * @param machine
     * @return
     */
    @Override
    public List<Machine> selectByCondition(Machine machine) {
        return machineMapper.selectByCondition(machine);
    }

    @Override
    public Machine selectMachineDetail(Long id) {
        return machineMapper.selectMachineDetail(id);
    }
}
